<?xml version="1.0" encoding="UTF-8" ?>
<!-- Example:
<componentlist>
  <hddDrive>
    <hdd>
        <id>1</id>   
        <name>hdd_1</name>
        <price>1000</authorsurname>
        <manName>DELL</authorname>
        <count>23</price>
    </hdd>
    <hdd>
        <id>2</id>   
        <name>hdd_2</name>
        <price>3000</authorsurname>
        <manName>SAMSUNG</authorname>
        <count>10</price>
    </hdd>
  <hddDrive>
  
  <motherboards>
  .....
  <motherboards>
  
</componentlist>
-->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="html"/>
  <xsl:template match="componentlist">
    <form method="post" action="shop">
    <table border = "0" cellspacing = "10">
        <tr bgcolor="silver"><td colspan = "2"><b>Hard Drives:</b></td><td><b>Price:</b></td></tr>
            <xsl:for-each select="hardDrives/hdd">
              <tr>
                <td>
                    <xsl:value-of select="name"/>
                </td>
                <td>
                     <xsl:value-of select="count"/>
                   </td>
                   <td>
                     <xsl:value-of select="price"/>
                   </td>
              </tr>
            </xsl:for-each>
                
        
        <tr bgcolor="silver"><td colspan = "2"><b>Motherboards:  </b></td><td><b>Price:</b></td></tr>
            <xsl:for-each select="motherboards/motherboard">
               <tr>
                  <td>
                     <xsl:value-of select="name"/>
                   </td>
                   <td>
                     <xsl:value-of select="count"/>
                   </td>
                   <td>
                     <xsl:value-of select="price"/>
                   </td>
                </tr>
             </xsl:for-each>
             
        
        <tr bgcolor="silver"><td colspan = "2"><b>Processors:  </b></td><td><b>Price:</b></td></tr>
            <xsl:for-each select="processors/processor">
              <tr>
                 <td>
                    <xsl:value-of select="name"/>
                  </td>
                  <td>
                     <xsl:value-of select="count"/>
                   </td>
                   <td>
                     <xsl:value-of select="price"/>
                   </td>
                 </tr>
             </xsl:for-each>
             
        
        <tr bgcolor="silver"><td colspan = "2"><b>RAM:  </b></td><td><b>Price:</b></td></tr>
            <xsl:for-each select="rams/ram">
              <tr>
                 <td>
                    <xsl:value-of select="name"/>
                  </td>
                  <td>
                     <xsl:value-of select="count"/>
                   </td>
                   <td>
                     <xsl:value-of select="price"/>
                   </td>
                </tr>
             </xsl:for-each>
             
        
        <tr bgcolor="silver"><td colspan = "2"><b>Videocards:  </b></td><td><b>Price:</b></td></tr>       
            <xsl:for-each select="videocards/videocard">
               <tr>
                  <td>
                    <xsl:value-of select="name"/>
                   </td> 
                   <td>
                     <xsl:value-of select="count"/>
                   </td>
                   <td>
                     <xsl:value-of select="price"/>
                   </td>
                 </tr>
             </xsl:for-each>
             
    </table>
    </form>
  </xsl:template>  
 
</xsl:stylesheet>
